home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v8n04.arc
/
FILMATCH.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-01-31
|
492b
|
15 lines
ECHO OFF
REM The next two lines delete any OLD files that don't
REM have a matching CSV file.
RENAME *.OLD *.
FOR %%h IN (*.) DO IF NOT EXIST %%h.CSV ERASE %%h
REM Restore the OLD extension to the old files and
REM remove the extension from the CSV files.
RENAME *. *.OLD
RENAME *.CSV *.
REM For any CSV file that doesn't have a corresponding OLD
REM file, create one by copying a blank template.
FOR %%h IN (*.) DO IF NOT EXIST %%h.OLD COPY FILE.TMP %%h.OLD
RENAME *. *.CSV